/**
 * 这里是uni-app内置的常用样式变量
 *
 * uni-app 官方扩展插件及插件市场（https://ext.dcloud.net.cn）上很多三方插件均使用了这些样式变量
 * 如果你是插件开发者，建议你使用scss预处理，并在插件代码中直接使用这些变量（无需 import 这个文件），方便用户通过搭积木的方式开发整体风格一致的App
 *
 */

/**
 * 如果你是App开发者（插件使用者），你可以通过修改这些变量来定制自己的插件主题，实现自定义主题功能
 *
 * 如果你的项目同样使用了scss预处理，你也可以直接在你的 scss 代码中使用如下变量，同时无需 import 这个文件
 */

/* 颜色变量 */
@import 'uview-ui/theme.scss';

$u-primary: #3870FF;

/* 行为相关颜色 */
$uni-color-primary: #2979ff;
$u-primary: #2979ff;
$uni-color-success: #4cd964;
$uni-color-warning: #f0ad4e;
$uni-color-error: #dd524d;

/* 文字基本颜色 */
$uni-text-color:#333;//基本色
$uni-text-color-inverse:#fff;//反色
$uni-text-color-grey:#999;//辅助灰色，如加载更多的提示信息
$uni-text-color-placeholder: #808080;
$uni-text-color-disable:#c0c0c0;

/* 背景颜色 */
$uni-bg-color:#ffffff;
$uni-bg-color-grey:#f8f8f8;
$uni-bg-color-hover:#f1f1f1;//点击状态颜色
$uni-bg-color-mask:rgba(0, 0, 0, 0.4);//遮罩颜色

/* 边框颜色 */
$uni-border-color:#c8c7cc;

/* 尺寸变量 */

/* 文字尺寸 */
$uni-font-size-sm:12px;
$uni-font-size-base:14px;
$uni-font-size-lg:16px;

/* 图片尺寸 */
$uni-img-size-sm:20px;
$uni-img-size-base:26px;
$uni-img-size-lg:40px;

/* Border Radius */
$uni-border-radius-sm: 2px;
$uni-border-radius-base: 3px;
$uni-border-radius-lg: 6px;
$uni-border-radius-circle: 50%;

/* 水平间距 */
$uni-spacing-row-sm: 5px;
$uni-spacing-row-base: 10px;
$uni-spacing-row-lg: 15px;

/* 垂直间距 */
$uni-spacing-col-sm: 4px;
$uni-spacing-col-base: 8px;
$uni-spacing-col-lg: 12px;

/* 透明度 */
$uni-opacity-disabled: 0.3; // 组件禁用态的透明度

/* 文章场景相关 */
$uni-color-title: #2C405A; // 文章标题颜色
$uni-font-size-title:20px;
$uni-color-subtitle: #555555; // 二级标题颜色
$uni-font-size-subtitle:26px;
$uni-color-paragraph: #3F536E; // 文章段落颜色
$uni-font-size-paragraph:15px;

view,
scroll-view {
  box-sizing: border-box;
}
.form-info {
  background: #F4F7F6;
  padding: 48rpx 0;
  .form-box {
    width: 686rpx;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 16rpx;
    padding: 16rpx 32rpx;
    .form-info-title {
      font-family: PingFangSC, PingFang SC;
      font-size: 30rpx;
      color: rgba(0,0,0,0.85);
      font-weight: bold;
      margin-top: 32rpx;
    }
    .form-item {
      padding: 32rpx 0;
      border-bottom: 2rpx dashed #EDF3F1;
      display: flex;
      justify-content: space-between;
      gap: 20rpx;
      .form-lable {
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        font-size: 28rpx;
        color: rgba(0,0,0,0.85);
        max-width: 280rpx;
        flex-shrink: 0;
      }
      .form-lable.required::before {
        vertical-align: middle;
        content: '*';
        color: #f8ad54;
        font-size: 32rpx;
        margin-right: 4rpx;
      }
      .form-content {
        flex: 1;
        text-align: right;
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        font-size: 28rpx;
      }
      .form-content-tips {
        font-size: 22rpx;
        color: #9d9d9d;
        margin-top: 8rpx;
      }
      .form-content-right {
        flex: initial;
      }
    }
    .form-item-top {
      display: block;
      padding: 0;
      border: none;
      .form-lable {
        padding: 32rpx 0;
        border-bottom: 2rpx dashed #EDF3F1;
      }
      .form-content {
        text-align: left;
        margin-top: 32rpx;
      }
    }
  }
}
.form-info-no-style {
  background: transparent;
  padding: 0;
}

.list-title-text {
  display: inline-block;
  position: relative;
  &::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    height: 16rpx;
    background: rgba(135, 169, 255, 1);
  }
  .text {
    position: relative;
    z-index: 2;
    font-size: 36rpx;
    color: rgba(51, 51, 51, 1);
  }
}

.u-navbar__content__title {
  color: #fff !important;
}

.pB30 {
  padding-bottom: 30px;
}

.inputPlaceholderClass {
  color: #909399;
}

.save-primary-btn,
.footer-primary-btn {
  width: 654rpx;
  height: 96rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32rpx;
  color: #fff;
  background: #3ec1ba;
  border-radius: 16rpx;
  margin: 0 auto;
}
.footer-primary-btn {
  position: fixed;
  bottom: 68rpx;
  left: 48rpx;
}

.save-primary-btn-actions {
  width: 654rpx;
  display: flex;
  gap: 30rpx;
  margin: 0 auto;
  .save-primary-l-btn {
    flex: 1;
    height: 96rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32rpx;
    color: #3ec1ba;
    background: #fff;
    border: 2rpx solid #3ec1ba;
    border-radius: 16rpx;
    margin: 0 auto;
  }
  .save-primary-r-btn {
    flex: 1;
    height: 96rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32rpx;
    color: #fff;
    background: #3ec1ba;
    border-radius: 16rpx;
    margin: 0 auto;
  }
}

.footer-primary-btn-actions {
  width: 654rpx;
  position: fixed;
  bottom: 68rpx;
  left: 48rpx;
  display: flex;
  gap: 30rpx;
  .footer-primary-l-btn {
    flex: 1;
    height: 96rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32rpx;
    color: #3ec1ba;
    background: #fff;
    border: 2rpx solid #3ec1ba;
    border-radius: 16rpx;
    margin: 0 auto;
  }
  .footer-primary-r-btn {
    flex: 1;
    height: 96rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32rpx;
    color: #fff;
    background: #3ec1ba;
    border-radius: 16rpx;
    margin: 0 auto;
  }
}

.a-empty {
  width: 686rpx;
  background: #FFFFFF;
  box-shadow: 0rpx 8rpx 20rpx 0rpx rgba(11,102,97,0.2);
  border-radius: 16rpx;
  padding: 288rpx 32rpx;
  margin: 0 auto;
}

.u-color-primary {
  color: rgba(56, 112, 255, 1);
}

.u-flex {
	/* #ifndef APP-NVUE */
	display: flex;
	/* #endif */
	flex-direction: row;
	align-items: center;
}

.u-flex-column {
	flex-direction: column;
}

.u-flex-wrap {
  flex-wrap: wrap;
}

.u-flex-nowrap {
  flex-wrap: nowrap;
}

.u-flex-1 {
  flex: 1;
  overflow: hidden;
}

.u-flex-2 {
  flex: 2;
  overflow: hidden;
}

.u-flex-3 {
  flex: 3;
  overflow: hidden;
}

.u-col-center {
  align-items: center;
}

.u-col-top {
  align-items: flex-start;
}

.u-col-bottom {
  align-items: flex-end;
}

.u-row-center {
  justify-content: center;
}

.u-row-left {
  justify-content: flex-start;
}

.u-row-right {
  justify-content: flex-end;
}

.u-row-between {
  justify-content: space-between;
}

.u-row-around {
  justify-content: space-around;
}

.u-text-left {
  text-align: left;
}

.u-text-center {
  text-align: center;
}

.u-text-right {
  text-align: right;
}

.u-line-1 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block !important;
}

.u-line-2 {
  -webkit-line-clamp: 2;
}

.u-line-3 {
  -webkit-line-clamp: 3;
}

.u-line-4 {
  -webkit-line-clamp: 4;
}

.u-line-5 {
  -webkit-line-clamp: 5;
}

.u-line-2,
.u-line-3,
.u-line-4,
.u-line-5 {
  overflow: hidden;
  word-break: break-all;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

// 定义flex等分
@for $i from 0 through 5 {
	.u-flex-#{$i} {
		flex: $i;
	}
}

// 定义内外边距，历遍1-80
@for $i from 0 through 80 {
	// 只要双数和能被5除尽的数
	@if $i % 2 == 0 or $i % 5 == 0 {
		
		
		@each $short, $long in l left, t top, r right, b bottom {
			// 缩写版，结果如： u-m-l-30
			// 定义外边距
			.u-m-#{$short}-#{$i} {
				margin-#{$long}: $i + rpx!important;
			}
			
			// 定义内边距
			.u-p-#{$short}-#{$i} {
				padding-#{$long}: $i + rpx!important;
			}
			
		}
	}
}

// 定义字体(rpx)单位，大于或等于20的都为rpx单位字体
@for $i from 10 through 40 {
	.u-font-#{$i} {
		font-size: $i + rpx;
	}
}

// 定义字体(rpx)单位，大于或等于20的都为rpx单位字体
@for $i from 1 through 6 {
	.h#{$i} {
    font-weight: bold;
    margin-bottom: 32rpx;
	}
}
.h1 {
  font-size: 48rpx;
}
.h2 {
  font-size: 44rpx;
}
.h3 {
  font-size: 40rpx;
}
.h4 {
  font-size: 36rpx;
}
.h5 {
  font-size: 32rpx;
}
.h6 {
  font-size: 28rpx;
}
